<?php 
if($rslt_absen != null) :
    if($rslt_absen->num_rows() == 0)
    {
        echo '<td colspan="6"><center>-Data tidak ditemukan-</center></td>';
    }
    else
    {
?>
<center>
    <label style="font-size: 1.4em;">
        Absensi Siswa   
        T.A <?php echo $rslt_absen->row()->tahun_angkatan; ?> 
        <br/> 
        <br/> 
        Kelas <?php echo $rslt_absen->row()->nama_kelas; ?>
        <br/> 
        <br/>   
    </label>
</center>

<table class="tabel_bordered rnd10" border="1">
    <thead>
        <tr>
            <th rowspan="2">Nomor Induk</th>
            <th rowspan="2">Nama</th>
            <th colspan="4">Daftar Absensi</th>
        </tr>
        <tr>
            <th><center style="padding: 5px"><span class="icon-ok" title="HADIR"></span></center></th>
            <th><center style="padding: 5px"><span class="icon-exclamation-sign" title="IZIN"></span></center></th>
            <th><center style="padding: 5px"><span class="icon-ambulance" title="SAKIT"></span></center></th>
            <th><center style="padding: 5px"><span class="icon-remove" title="TIDAK HADIR - TANPA KETERANGAN"></span></center></th>
        </tr>
    </thead>
        <?php 
        foreach ($rslt_absen->result() as $v_absen)
        {
            echo '<tr>';
            echo '<td>'.$v_absen->nomor_induk.'</td>';
            echo '<td>'.$v_absen->nama_siswa.'</td>';
            echo '<td><center>'.$v_absen->hadir.'</center></td>';
            echo '<td><center>'.$v_absen->izin.'</center></td>';
            echo '<td><center>'.$v_absen->sakit.'</center></td>';
            echo '<td><center>'.$v_absen->tidak_hadir.'</center></td>';
            echo '</tr>';
        }
        ?>
</table>
Keterangan<br/>
<span class="icon-ok" title="HADIR"></span> : Hadir | 
<span class="icon-exclamation-sign" title="IZIN"></span> : Izin | 
<span class="icon-ambulance" title="SAKIT"></span> : Sakit | 
<span class="icon-remove" title="TIDAK HADIR - TANPA KETERANGAN"></span> : Tidak Hadir - Tanpa Keterangan
    <?php } 
 else :
     echo '<center>-data tidak ditemukan-</center>';
endif;?>